﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Validator.Constraints;

namespace Landscape.Business.Entities
{
    public class SystemResourceMap
    {
        public SystemResourceMap()
        {
            this.ID = Guid.Empty;
        }

        public virtual Guid ID
        { get; set; }

        [NotNull]
        [Length(Max=20, Message="Group ID should be inbetween 2 - 20 charectors.", Min=2)]
        public virtual string GroupId
        { get; set; }

        public virtual UserMaster User
        { get; set; }

        public virtual Vessel Vessel
        { get; set; }

        public virtual Role Role
        { get; set; }

        public virtual Department Department
        { get; set; }
    }
}
